package com.kung.qvs.entity;

import android.view.View;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 打印内容
 */
@Entity
public class PrintDataBean {
    @Id(autoincrement = true)
    private Long _id;
    //需上传字段
    private String EquipmentNo; //电子秤设备码（唯一）
    @Unique
    private String PrintCode;   //打印码（每张标签生成的变码，规则为ElectronicScaleNo+ ProductClassId+yyMMdd+4位流水号）
    private String CompanyName;   //公司ID
    private String ProductId;   //商品ID
    private String ProductName;   //商品名称
    private String standardWeight;   //规格
    private String Weight;  //重量如1.3kg
    private String amount;
    private String WorkId;  //包粽员ID
    private String WorkName;  //包粽员名称
    private String fcdate;       //记录生成时间

    private String listing; //是否挂牌

    private String fcodeT;  //时间戳
    private String fst; //0未上传，1标记为上传，在上传队列中，3 已经上传
    @Transient
    private String fstDesc;
    @Transient
    private Integer visibleDelete = View.INVISIBLE;
    @Transient
    private String index;

    public String getListing() {
        return listing;
    }

    public void setListing(String listing) {
        this.listing = listing;
    }

    @Transient
    private String indexName;
    @Transient
    private String strBatchCode;
    @Transient
    private int visibility; //是否可见
    @Generated(hash = 907409400)
    public PrintDataBean(Long _id, String EquipmentNo, String PrintCode, String CompanyName,
            String ProductId, String ProductName, String standardWeight, String Weight, String amount,
            String WorkId, String WorkName, String fcdate, String listing, String fcodeT, String fst) {
        this._id = _id;
        this.EquipmentNo = EquipmentNo;
        this.PrintCode = PrintCode;
        this.CompanyName = CompanyName;
        this.ProductId = ProductId;
        this.ProductName = ProductName;
        this.standardWeight = standardWeight;
        this.Weight = Weight;
        this.amount = amount;
        this.WorkId = WorkId;
        this.WorkName = WorkName;
        this.fcdate = fcdate;
        this.listing = listing;
        this.fcodeT = fcodeT;
        this.fst = fst;
    }

    @Generated(hash = 601694199)
    public PrintDataBean() {
    }
    public Long get_id() {
        return this._id;
    }
    public void set_id(Long _id) {
        this._id = _id;
    }
    public String getEquipmentNo() {
        return this.EquipmentNo;
    }
    public void setEquipmentNo(String EquipmentNo) {
        this.EquipmentNo = EquipmentNo;
    }
    public String getPrintCode() {
        return this.PrintCode;
    }
    public void setPrintCode(String PrintCode) {
        this.PrintCode = PrintCode;
    }
    public String getCompanyName() {
        return this.CompanyName;
    }
    public void setCompanyName(String CompanyName) {
        this.CompanyName = CompanyName;
    }
    public String getProductId() {
        return this.ProductId;
    }
    public void setProductId(String ProductId) {
        this.ProductId = ProductId;
    }
    public String getProductName() {
        return this.ProductName;
    }
    public void setProductName(String ProductName) {
        this.ProductName = ProductName;
    }
    public String getWeight() {
        return this.Weight;
    }
    public void setWeight(String Weight) {
        this.Weight = Weight;
    }
    public String getWorkId() {
        return this.WorkId;
    }
    public void setWorkId(String WorkId) {
        this.WorkId = WorkId;
    }
    public String getWorkName() {
        return this.WorkName;
    }
    public void setWorkName(String WorkName) {
        this.WorkName = WorkName;
    }
    public String getFcdate() {
        return this.fcdate;
    }
    public void setFcdate(String fcdate) {
        this.fcdate = fcdate;
    }
    public String getStandardWeight() {
        return this.standardWeight;
    }
    public void setStandardWeight(String standardWeight) {
        this.standardWeight = standardWeight;
    }
    public String getFst() {
        return this.fst;
    }
    public void setFst(String fst) {
        this.fst = fst;
    }

    public Integer getVisibleDelete() {
        return visibleDelete;
    }

    public void setVisibleDelete(Integer visibleDelete) {
        this.visibleDelete = visibleDelete;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public String getStrBatchCode() {
        return strBatchCode;
    }

    public void setStrBatchCode(String strBatchCode) {
        this.strBatchCode = strBatchCode;
    }

    public String getFstDesc() {
        if ("0".equals(fst)) {
            return "未上传";
        } else if("3".equals(fst)) {
            return "已上传";
        } else if("1".equals(fst)) {
            return "上传中";
        }
        return fstDesc;
    }

    public void setFstDesc(String fstDesc) {
        this.fstDesc = fstDesc;
    }

    public int getVisibility() {
        if ("0".equals(fst)) {
            return View.VISIBLE;
        }
        return View.INVISIBLE;
    }

    public void setVisibility(int visibility) {
        this.visibility = visibility;
    }
    public String getFcodeT() {
        return this.fcodeT;
    }
    public void setFcodeT(String fcodeT) {
        this.fcodeT = fcodeT;
    }
    public String getAmount() {
        return this.amount;
    }
    public void setAmount(String amount) {
        this.amount = amount;
    }
}
